class spr_el
{
public:
	float x,y,z,w,h;
	int visible;
};

class SpriteSystem
{
private:
	spr_el *ss;
	unsigned int s_count;
	int mode;
	float sswidth,ssheight,ssdepht;
	int sschanged;
	int locked;
	GLuint VBuffer;
	int sortmode;
public:
	SpriteSystem(int count);
	~SpriteSystem();
	void Draw(float x,float y,float z);

	float GetWidth();
	float GetHeight();
	float GetDepht();

	void SpritePos(unsigned int index,float x,float y,float z);
	void SpriteSize(unsigned int index,float width,float height);
	void SpriteVisible(unsigned int index,int value);
	void SetMode(int value);
	void Sort(float x_,float y_,float z_);
	void Sort(int beg,int end,float x_,float y_,float z_);
	void SortMode(int smode);

	void Lock(unsigned int mode);
	void UnLock();
};